package cn.gene.timeyan.coo.service;

import cn.gene.timeyan.common.restful.JsonPage;
import cn.gene.timeyan.common.restful.JsonResult;
import cn.gene.timeyan.pojo.article.vo.SimpleArticleVO;
import cn.gene.timeyan.pojo.coo.dto.CooperationDTO;
import cn.gene.timeyan.pojo.coo.dto.CooperationDetailDTO;
import cn.gene.timeyan.pojo.coo.model.Cooperation;
import cn.gene.timeyan.pojo.coo.vo.CooperationVO;

import java.util.List;

/**
 * <p>
 * 浜掑姪璐翠俊鎭 服务类
 * </p>
 *
 * @author LWG
 * @since 2022-07-25
 */
public interface CooperationService {
    /**
     * 分页查询所有求助信息
     * @param pageNum PageSize
     * @return 一页spu信息
     */
    JsonPage<Cooperation> getCooperationByPage(Integer pageNum, Integer pageSize);
    JsonPage<Cooperation> getCooperationLostByPage(Integer pageNum, Integer pageSize);

    void addNewCooperation(CooperationDTO cooperationDTO);

    int updateApplyBelimit(Long helpId);

    Cooperation getHelpByHelpId(Long helpId);

    CooperationVO cooperationDetail(CooperationDetailDTO cooperationDTO);

    List<CooperationVO> getCooperationList(String school, Long modelId);

    List<CooperationVO> getHelpListNext(String school, Long modelId, Integer page);

    List<CooperationVO> getCountryCooperationList(Long modelId);

    List<CooperationVO> getCountryHelpListNext(Long modelId, Integer page);

    JsonResult<List<CooperationVO>> getUserHelpList(Long userId, Integer page);
}
